package lab01;
import java.util.Scanner;
public class Test7 {
    public static void main(String[] args) {
        int t=(int)(Math.random()*10+1);
        System.out.println("请输入你猜测的数:");
        while (true) {
            Scanner sc = new Scanner(System.in);
            int i = sc.nextInt();
            if(t==i){
                System.out.println("你猜对啦！");
                break;
            }
            if(i<t){
                System.out.println("你猜小啦!");
            }
            if(i>t){
                System.out.println("你猜大啦!");
            }
        }
    }
}
